package com.ruoyi.supervise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supervise.mapper.CompletionRecordInfoMapper;
import com.ruoyi.supervise.domain.CompletionRecordInfo;
import com.ruoyi.supervise.service.ICompletionRecordInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 工程竣工验收备案信息Service业务层处理
 * 
 * @author wtj
 * @date 2019-10-15
 */
@Service
public class CompletionRecordInfoServiceImpl implements ICompletionRecordInfoService 
{
    @Autowired
    private CompletionRecordInfoMapper completionRecordInfoMapper;

    /**
     * 查询工程竣工验收备案信息
     * 
     * @param guid 工程竣工验收备案信息ID
     * @return 工程竣工验收备案信息
     */
    @Override
    public CompletionRecordInfo selectCompletionRecordInfoById(String guid)
    {
        return completionRecordInfoMapper.selectCompletionRecordInfoById(guid);
    }

    /**
     * 查询工程竣工验收备案信息列表
     * 
     * @param completionRecordInfo 工程竣工验收备案信息
     * @return 工程竣工验收备案信息
     */
    @Override
    public List<CompletionRecordInfo> selectCompletionRecordInfoList(CompletionRecordInfo completionRecordInfo)
    {
        return completionRecordInfoMapper.selectCompletionRecordInfoList(completionRecordInfo);
    }

    /**
     * 新增工程竣工验收备案信息
     * 
     * @param completionRecordInfo 工程竣工验收备案信息
     * @return 结果
     */
    @Override
    public int insertCompletionRecordInfo(CompletionRecordInfo completionRecordInfo)
    {
        return completionRecordInfoMapper.insertCompletionRecordInfo(completionRecordInfo);
    }

    /**
     * 修改工程竣工验收备案信息
     * 
     * @param completionRecordInfo 工程竣工验收备案信息
     * @return 结果
     */
    @Override
    public int updateCompletionRecordInfo(CompletionRecordInfo completionRecordInfo)
    {
        return completionRecordInfoMapper.updateCompletionRecordInfo(completionRecordInfo);
    }

    /**
     * 删除工程竣工验收备案信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCompletionRecordInfoByIds(String ids)
    {
        return completionRecordInfoMapper.deleteCompletionRecordInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除工程竣工验收备案信息信息
     * 
     * @param guid 工程竣工验收备案信息ID
     * @return 结果
     */
    public int deleteCompletionRecordInfoById(String guid)
    {
        return completionRecordInfoMapper.deleteCompletionRecordInfoById(guid);
    }

	@Override
	public List<CompletionRecordInfo> selectCompletionRecordInfoListNot(CompletionRecordInfo completionRecordInfo) {
		// TODO Auto-generated method stub
		return completionRecordInfoMapper.selectCompletionRecordInfoListNot(completionRecordInfo);
	}
}
